//
//  HttpClient.h
//  newTestGit
//
//  Created by fangjs on 16/3/15.
//  Copyright © 2016年 Hongshi. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>
#import "AFHTTPSessionManager.h"

typedef void (^ResultBlock)(id responseObjec,NSError *error);

@interface HttpClient : AFHTTPSessionManager


+(void) startWithBaseURL:(NSURL *) baseURL;
+(instancetype) shareClient;

- (NSURLSessionDataTask *) getPath:(NSString *)path params:(NSDictionary *) params resultBlock:(ResultBlock) resultBlock;
- (NSURLSessionDataTask *) postPath:(NSString *)path params:(NSDictionary *) params resultBlock:(ResultBlock) resultBlock;
- (NSURLSessionDataTask *) putPath:(NSString *)path params:(NSDictionary *) params resultBlock:(ResultBlock) resultBlock;
- (NSURLSessionDataTask *) deletePath:(NSString *)path params:(NSDictionary *) params resultBlock:(ResultBlock) resultBlock;


@end






































